<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.bigBox{
				width: 700px;
				height: 700px;
				background-color: #eee;
				position: relative;
			}
			
			.box{
				width: 500px;
				height: 500px;
				background-color: yellowgreen;
				margin: 100px 0 0 100px;
			}
			.minBox{
				width: 50px;
				height: 50px;
				background-color: red;
				/*绝对定位:相对于最近的有定位属性的父元素来定位;*/
				position: absolute;
				left: 10px;top: 10px;
			}
		</style>
	</head>
	<body>
		<div class="bigBox">
		
			<div class="box">
				<div class="minBox"></div>
				
			</div>
		
		</div>
		
	</body>
</html>